
{% extends 'base_admin.html' %}
{% load static %}

{% block document%}添加数据{% endblock %}
{% block css %}
    <link rel="stylesheet" href="{%static '/css/add.css'%}">
{%endblock%}
{% block module %}
添加用户
{% endblock %}
{% block active2 %}
active
{% endblock %}
{% block content%}
    <div class="panel panel-default">
        <div class="panel-heading">
            <h3 class="panel-title">修改用户</h3>
        </div>
        <div class="panel-body">
            <form method="post">
                {% csrf_token%}
                <div class="form-group">
                <label >姓名</label>
                <input type="text" class="form-control" value="{{obj.name}}" name="name">
            </div>
            <div class="form-group">
                <label >密码</label>
                <input type="text" class="form-control" value="{{obj.password}}" name="password">
            </div>
               
            <div class="form-group">
                <label >年龄</label>
                <input type="text" class="form-control"  value="{{obj.age}}" name="age">
            </div>
            
            <button type="submit" class="btn btn-default">保存</button>
        </form> 
        </div>
    </div> 
{% endblock %}